package com.yhxd.modular.reference.dao;

import com.yhxd.modular.reference.entity.PublicFile;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PublicFileDao extends JpaRepository<PublicFile, Long>, JpaSpecificationExecutor<PublicFile> {

    void deleteByDirIdIn(List<Long> idList);
    List<PublicFile> findByPathLike(String path);
    List<PublicFile> findByDirIdAndFileNameAndSuffix(Long dirId, String fileName, String suffix);
}
